vs_4_0
dcl_constantbuffer cb1[16], immediateIndexed
dcl_input v0.xyz
dcl_input v1.xyzw
dcl_input v2.xyzw
dcl_input v3.xyzw
dcl_input v4.xyzw
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_output o6.xyzw
dcl_temps 4
lt r0.xyz, |v2.xyzx|, |v2.yzxy|
and r0.xyz, r0.xyzx, l(0x3f800000, 0x3f800000, 0x3f800000, 0)
ge r1.xyz, |v2.zxyz|, |v2.xyzx|
and r1.xyz, r1.xyzx, l(0x3f800000, 0x3f800000, 0x3f800000, 0)
mul r2.xyz, r0.xyzx, r1.xyzx
dp3 r0.y, r2.xyzx, l(1.000000e+000, 1.000000e+000, 1.000000e+000, 0.000000e+000)
eq r0.y, r0.y, l(0.000000e+000)
and r0.y, r0.y, l(0x3f800000)
mad r2.w, r0.x, r1.x, r0.y
mul r0.xyz, r2.zwyz, v2.yzxy
mad r0.xyz, r2.yzwy, v2.zxyz, -r0.xyzx
dp2 r0.w, v0.xyxx, v0.xyxx
rsq r0.w, r0.w
mul r1.xy, r0.wwww, v0.xyxx
ge r0.w, l(9.999000e-001), |v0.z|
and r1.xy, r1.xyxx, r0.wwww
mul r0.xyz, r0.xyzx, r1.yyyy
mad r0.xyz, r2.wyzw, r1.xxxx, r0.xyzx
add r0.w, v0.z, l(1.000000e+000)
mul r0.w, r0.w, r0.w
add r1.x, -v3.x, l(1.000000e+000)
mad r0.w, -r0.w, r1.x, l(1.000000e+000)
mad r1.x, -r0.w, r0.w, l(1.000000e+000)
mul r1.yzw, r0.wwww, v2.xxyz
min r0.w, |r1.x|, l(1.000000e+000)
sqrt r0.w, r0.w
mul r2.xyz, r0.wwww, r0.xyzx
add r0.w, -v0.z, l(1.000000e+000)
mul r3.xy, r0.wwww, v3.xyxx
mul r0.xyz, r0.xyzx, r3.yyyy
mul r3.xyz, r3.xxxx, v2.xyzx
ge r0.w, l(0.000000e+000), v0.z
movc r0.xyz, r0.wwww, r2.xyzx, r0.xyzx
movc r1.xyz, r0.wwww, r1.yzwy, r3.xyzx
add r0.xyz, r0.xyzx, r1.xyzx
add r0.w, v1.w, l(5.800000e-002)
mad r1.xyz, -v2.xyzx, l(2.900000e-002, 2.900000e-002, 2.900000e-002, 0.000000e+000), v1.xyzx
mad r0.xyz, r0.xyzx, r0.wwww, r1.xyzx
mul r1.xyzw, r0.yyyy, cb1[9].xyzw
mad r1.xyzw, r0.xxxx, cb1[8].xyzw, r1.xyzw
mad r1.xyzw, r0.zzzz, cb1[10].xyzw, r1.xyzw
add o2.xyz, r0.xyzx, -cb1[15].xyzx
add r0.xyzw, r1.xyzw, cb1[11].xyzw
mov o0.xyzw, r0.xyzw
add r1.x, r0.w, r0.x
add r1.y, -r0.y, r0.w
mul o1.xy, r1.xyxx, l(5.000000e-001, 5.000000e-001, 0.000000e+000, 0.000000e+000)
mov o1.zw, r0.zzzw
mov o2.w, r0.w
mov o3.xyzw, v1.xyzw
mov o4.xyzw, v2.xyzw
mov o5.xyzw, v3.xyzw
mov o6.xyzw, v4.xyzw
ret